home *** CD-ROM | disk | FTP | other *** search
- Path: gryphon.phoenix.net!usenet
- From: "Nathan R. Price" <nprice@.interramp.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Header Includes
- Date: Mon, 01 Jan 96 13:37:56 PDT
- Organization: Phoenix Data Systems
- Message-ID: <NEWTNews.820532400.5300.nprice@dailinxx.phoenix.net>
- References: <4c78g0$jmr@spectator.cris.com>
- NNTP-Posting-Host: dial60.phoenix.net
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- X-Newsreader: NEWTNews & Chameleon -- TCP/IP for MS Windows from NetManage
-
-
- In Article<4c78g0$jmr@spectator.cris.com>, <mckebp@cris.com> write:
- > Path: gryphon.phoenix.net!news.sprintlink.net!news1.cris.com!news
- > From: mckebp@cris.com (Rasta Mon)
- > Newsgroups: comp.lang.c++
- > Subject: Header Includes
- > Date: Mon, 01 Jan 1996 02:07:11 GMT
- > Organization: Happy Fun World
- > Lines: 14
- > Message-ID: <4c78g0$jmr@spectator.cris.com>
- > NNTP-Posting-Host: crc6-fddi.cris.com
- > X-Newsreader: Forte Free Agent 1.0.82
- >
- > On a lot of my header includes, the headers refer to other headers,
- > and I find that sometimes I'm getting the same one referred to several
- > times when compiling. I think that if I compiled with each referred
- > header individually, the program realizes its mistake, but, during
- > compilation, there is the repetition.
- > But, I don't want to refer to each individually, because it would be a
- > heck of a lot of typing.
- > If it helps, I am, by the way, using Borland Turbo C++.
- > Is there a way to stop this problem?
- > \\|// You have received a message from Ben McKenzie \\//
- > (O-O) DON'T PANIC! o00o-(,,)-o00o
- > +oOO--(_)--OOo MCKEBP@CRIS.COM http://www.cris.com/~mckebp ()
- > a.k.a. Iceman, Goob, Teapot, The Wizard, Blackie Z-Mon, Kermit, MacGyver,
- Beeee, and Rasta Mon
- >
-
- I don't know about Borland, but in MSVC++ there are precompiler commands that
- keep a header from being compiled more than once.
-
- Basically all of the headers look like this.
-
- #ifndef _HEADERNAME
- #define _HEADERNAME
-
- ...
- header info.
- ...
-
- #endif
-
- Anyway, I hope that helps.
-
- Yours,
- Nathan R. Price
-
-
-